package com.cloudfun.campusshare.common.model.dto;

import com.cloudfun.campusshare.common.constant.miniprogram.WeChatReturnCode;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

/**
 * Created by Huqin on 2020/4/20
 */
@Data
@JacksonXmlRootElement(localName = "xml")
public class WeChatNotifyBaseDTO {

    /**
     * 返回状态码
     * SUCCESS/FAIL
     * 此字段是通信标识，非交易标识，交易是否成功需要查看result_code来判断
     */
    @JacksonXmlProperty(localName = "return_code")
    private WeChatReturnCode returnCode;

    /**
     * 返回信息
     * 返回信息，如非空，为错误原因
     * 签名失败
     * 参数格式校验错误
     */
    @JacksonXmlProperty(localName = "return_msg")
    private String returnMsg;

}
